package Pages;

import appium1.common.Helper;
import org.openqa.selenium.WebElement;

public class Pagesettings {
    private Helper helper;

    public Pagesettings(Helper helper) {
        this.helper = helper;
    }

    public WebElement getblackBtn() {
        return helper.findByClassName("android.widget.ImageButton");
    }

    public WebElement getlogout() {
        return helper.findById("net.oschina.app:id/rl_cancel");
    }

    public WebElement getAbout(){
        return helper.findById("net.oschina.app:id/rl_about");
    }
    public void clicklogout() {
        helper.click(getlogout());
    }

    public void clicblackbtn() {
        helper.click(getblackBtn());
    }
    public  void clickAbouts(){
        helper.click(getAbout());
    }
}

